package com.adnaan.backend.service;

import com.adnaan.backend.entity.SupplierApplication;
import com.baomidou.mybatisplus.extension.service.IService;

public interface SupplierApplicationService extends IService<SupplierApplication> {
    /**
     * 审核供货商申请
     *
     * @param id           申请ID
     * @param status       审核状态
     * @param rejectReason 拒绝原因（当status=2时必填）
     * @return 是否成功
     */
    boolean audit(Long id, Integer status, String rejectReason);

    /**
     * 检查用户是否已经是供货商
     *
     * @param userId 用户ID
     * @return 是否是供货商
     */
    boolean isSupplier(Long userId);
} 